#pragma once
#include<stdio.h>
#define SIZE 4096
#define NONE_FLUSH (1<<1)
#define LINE_FLUSH (1<<2)
#define FULL_FLUSH (1<<3)

typedef struct _myFILE
{
  char outbuffer[SIZE];
  int pos;
  int cap;
  int fileno;
  int flush_mode;
}_myFILE;
void DebugPrint(_myFILE *fp);
void my_fflush(_myFILE *fp);
_myFILE *myfopen(const char *pathgname,const char *mode);
int my_fwrite(_myFILE *fp,const char *s,int size);
void my_fclose(_myFILE *fp);
